import React, { Component } from 'react';
import { StyleSheet, Text, View, Image, Button, Alert } from 'react-native';
import reactMixin from 'react-mixin';
import TimerMixin from 'react-timer-mixin';

export default class DemoTimer extends Component {
    render() {
        return (
            <View style={styles.root} >
                <Button title={`TimeoutTest`} onPress={() => {
                    this.setTimeout(() => {
                        Alert.alert("hello ");
                    }, 2000);
                }} />
            </View>
        )
    }
}
reactMixin(DemoTimer.prototype, TimerMixin);

const styles = StyleSheet.create({
    root: {
        alignItems: 'center',
        backgroundColor: 'transparent',
        flex: 1,
        justifyContent: 'center',
    },
});
